package com.itxx.keycase.blockingqueue;

import java.util.concurrent.ArrayBlockingQueue;

public class Test {
    public static void main(String[] args) {

        ArrayBlockingQueue<String> strings = new ArrayBlockingQueue<>(1);

        Cooker c = new Cooker(strings);
        c.setName("厨师");
        c.start();

        Foodie f = new Foodie(strings);
        f.setName("厨师");
        f.start();
    }
}
